package net.goutalk.glcs.module.workflow.service;

import net.goutalk.glcs.common.page.PageOutput;
import net.goutalk.glcs.module.workflow.dto.AddDelegateDto;
import net.goutalk.glcs.module.workflow.dto.DelegatePageDto;
import net.goutalk.glcs.module.workflow.dto.UpdateDelegateDto;
import net.goutalk.glcs.module.workflow.entity.WorkflowDelegate;
import com.baomidou.mybatisplus.extension.service.IService;
import net.goutalk.glcs.module.workflow.vo.DelegatePageVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 流程委托 服务类
 * </p>
 *
 * @author tanyujie
 * @since 2022-11-05
 */
@Service
public interface IWorkflowDelegateService extends IService<WorkflowDelegate> {

    /**
     * 分页查询
     * @param dto
     * @return
     */
    PageOutput<DelegatePageVo> page(DelegatePageDto dto);

    /**
     * 新增
     * @param dto
     * @return
     */
    boolean add(AddDelegateDto dto);


    /**
     * 修改
     * @param dto
     * @return
     */
    boolean update(UpdateDelegateDto dto);


    /**
     * 删除
     * @param ids
     * @return
     */
    boolean delete(List<Long> ids);
}
